﻿using System;
using System.Threading.Tasks;
using Linker.TaskCenter.Tasks.Dto;
using Linker.TaskCenter.Web.Models;
using Volo.Abp.Application.Dtos;

namespace Linker.TaskCenter.Tasks
{
    public interface ITaskAppService
    {
        Task<AjaxResponse<TaskDto>> Get(Guid taskId);

        Task<AjaxResponse<Guid>> Create(CreateTaskDto input);

        Task<AjaxResponse> Cancel(Guid taskId);

        Task<AjaxResponse<PagedResultDto<TaskDto>>> GetPaged(PagedTaskRequestDto input);
    }
}